<template>
    <div>
        <img src="../../assets/我的.png" alt="">
        <button @click="delFun">退出登录</button>
    </div>
</template>

<script setup>
import { useRoute, useRouter } from 'vue-router'

const router = useRouter()
const route = useRoute()
const delFun=()=>{
    router.push('/home')
    localStorage.clear
}
</script>

<style lang="scss" scoped>

</style>